package MyBinaryTree;

/**
 * Created with IntelliJ IDEA.
 * Description:用来测试二叉树
 * User: 石方旭
 * Date: 2022-05-15
 * Time: 19:29
 */
public class BinaryTreeTest {

    public static void main(String[] args) {
       BinaryTree binaryTree = new BinaryTree();
       BinaryTree.TreeNode root = binaryTree.CreateBinaryTree();
     //  A  B  c d e f
//       binaryTree.PrevOrder(root);
//        System.out.println();
//        binaryTree.InOrder(root);
//        System.out.println();
//        binaryTree.PostOrder(root);
//        System.out.println();
       // System.out.println(binaryTree.getLeafNodeSize(root));
        System.out.println(binaryTree.getHeight(root));
    }

}
